export const mapMutations = function(arg){
	let obj = {}
	if(arg instanceof Array){
		arg.forEach(item=>{
			obj[item] = function(payload){
				this.$store.commit(item,payload)
			}
		})
	}else{
		for(let key in arg){
			obj[key] = function(payload){
				this.$store.commit(arg[key],payload)
			}
		}
	}
	return obj;
}